package com.example.javafx.bilibilidownload.util

import java.text.SimpleDateFormat


object DateUtil {

    @JvmStatic
    fun getTimestamp(time: String): Long {
        return SimpleDateFormat("yyyy-MM-dd").parse(time).time
    }

    @JvmStatic
    fun getTimesString(time: Long): String {
        return SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time)
    }
}